use ruma::{api::client::push::get_pushrules_all, push::Ruleset};

use crate::{utils::ruma_wrapper::Ruma, Result};

/// # `GET /_matrix/client/r0/pushrules/`
///
/// Retrieves the push rules event for this user.
pub(crate) async fn get_pushrules_all_route(
    _body: Ruma<get_pushrules_all::v3::Request>,
) -> Result<get_pushrules_all::v3::Response> {
    // let sender_user = body.sender_user.as_ref().expect("user is authenticated");

    let global_ruleset = Ruleset::new();

    Ok(get_pushrules_all::v3::Response {
        global: global_ruleset,
    })
}
